package com.zima.mall.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "action_address")
public class Address {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String name;
    @TableField(value = "addr")
    private String address;
    private String phone;
    private String mobile;
    private String province;
    private String city;
    private String district;
    private String addr;
    private String zip;
    private Integer defaultAddr;

    @TableField(value = "created",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date created;

    @TableField(value = "updated",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updated;

    private Integer delState;

}
